package com.chuming.myspring;

/**
 * @author chuming
 * @create 2022/4/10 - 9:42
 */
public class TestApplication {

    public static void main(String[] args) {
        MyAnnotationConfigApplicationContext applicationContext = new MyAnnotationConfigApplicationContext("com.chuming.myspring.entitys");
        System.out.println(applicationContext.getBeanDefinitionCount());

        String[] beanDefinitionNames = applicationContext.getBeanDefinitionNames();
        for (String beanDefinitionName : beanDefinitionNames) {
            System.out.println(beanDefinitionName);
            System.out.println(applicationContext.getBean(beanDefinitionName));
        }
    }

}
